<template>
  <div>
    <a-card :bordered='false'>
      <tab1 ref='form5' v-if="current=='form1'"></tab1>
    </a-card>
  </div>
</template>
<script>

import api from "../../js/api"

import Tab1 from "./tab1"

export default {
  name: "Tabs",
  components: { Tab1 },
  data() {
    let me = this
    return {
      api: Object.assign(api, this.api),
      //列表初始化查询参数
      queryParam: {},
      current: "form1",
      forms: [
        "form1",
        "form2",
        "form3"
      ]
    }
  },
  created() {
  },
  methods: {
    tabClick(name) {
      this.current = name
      this.$nextTick(() => {
        this.searchHandler(name)
      })
    },
    searchHandler(searchParams) {
      this.$refs[this.current].searchTable(searchParams)
    }
  }
}
</script>
